<?php

declare(strict_types=1);

namespace app\admin\model;

use think\Model;

/**
 * @mixin \think\Model
 */
class LogisticsOrderItem extends BaseModel
{
    //
    public function products()
    {
        return $this->hasOne(Product::class, 'id', 'product_id')->bind(['product_name' => 'cname',  'code']);
    }
    public function warehouses()
    {
        return $this->hasOne(Warehouse::class, 'id', 'warehouse_id')->bind(['warehouse_name' => 'name']);
    }
}
